export default {
  data() {
    return {
      systemType: localStorage.getItem("systemType"),
      options: []
    }
  },

  created () {
    this.initOptionList()
  },

  methods: {
    initOptionList() {
      if (this.systemType == 'assetManagement') {
        this.options = [{
            key: "newJob",
            name: "工作事件"
          },
          {
            key: "newMeetingMinutes",
            name: "会议纪要"
          },
          {
            key: "initiateAnAnnualPlan",
            name: "发起年度计划"
          },
        ]
      } else {
        this.options = [{
            key: "reimbursement",
            name: "报销"
          },
          {
            key: "eventReport",
            name: "上报事件"
          },
          {
            key: "addContract",
            name: "新建合同"
          }
        ]
      }
    },

    async addFn() {
      this.$refs.option.isShow = true;
    },
  },
}
